/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.poll.monitor.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hopes.bizz.poll.analy.vo.MonitorSiteStatusVO;
import com.hopes.bizz.poll.gis.vo.GisWater;
import com.hopes.bizz.poll.monitor.dto.PollMonitorSiteExcelDTO;
import com.hopes.bizz.poll.monitor.entity.PollMonitorSiteEntity;
import com.hopes.bizz.poll.monitor.vo.PollMonitorSiteByMainTypeVO;
import com.hopes.bizz.poll.monitor.vo.PollMonitorSiteExcelVO;
import com.hopes.bizz.poll.monitor.vo.PollMonitorSiteVo;
import com.hopes.bizz.poll.gis.vo.GisAir;
import com.hopes.boss.common.service.ExcelService;

import java.util.List;

/**
 * 监控点信息
 *
 * @author pig
 * @date 2023-05-19 13:28:48
 */
public interface PollMonitorSiteService extends ExcelService<PollMonitorSiteExcelDTO, PollMonitorSiteExcelVO, PollMonitorSiteEntity> {

    /**
     * 分页查询监控站点
     * @param page  分页数据
     * @param query 查询条件
     * @return
     */
    Page<PollMonitorSiteVo> queryPage(Page page, Wrapper<PollMonitorSiteEntity> query);

    /**
     * 监控点状态统计
     *
     * @return
     */
    List<MonitorSiteStatusVO> statisticMonitorSiteStatus();

    /**
     * 监控点状态统计
     *
     * @return
     */
    Boolean monitorSiteStatusJobHandler();
    /**
     * @Description 根据监控点大类获取监控点id
     * @Author lyb
     * @Date 2023/9/27
     **/
    List<Long> getIdByMonitorMainType(Integer monitorTypeMain);


    /**
     * @param monitorType 监控点类型
     * @param isAqiMonitor  是否是AQI站点
     * @param dataType 数据类型
     *       @see com.hopes.bizz.poll.common.constant.OmConstant  */
    List<GisAir> queryGisAirMonitor(List<Integer> monitorType, String isAqiMonitor, Integer dataType);


    /**
     * @param monitorType 监控点类型
     * @param dataType 数据类型
     */
    List<GisWater> queryGisWaterMonitor(List<Integer> monitorType, Integer dataType);
    /**
     * 通过监控点大类来查询下属监控点
     *
     * @param mainType
     * @return
     */
    List<PollMonitorSiteByMainTypeVO> getPollMonitorSiteListByMainType(Integer mainType);
}
